package org.smr.ministore.micro.client;

import java.util.List;

import org.blade.utils.Pager;
import org.smr.ministore.entities.GoodsSpecificationGroupOrgan;
import org.smr.ministore.entities.vo.Assign2OrgansVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("gateway.GoodsSpecificationGroupOrgan")
public interface FeignGoodsSpecificationGroupOrganMicroServiceClient {

    @RequestMapping(method = RequestMethod.PUT, value = "/GoodsSpecificationGroupOrgan/batchSave")
    int batchSave(@RequestBody List<GoodsSpecificationGroupOrgan> entities);

    @RequestMapping(method = RequestMethod.POST, value = "/GoodsSpecificationGroupOrgan/batchModify")
    int batchModify(@RequestBody List<GoodsSpecificationGroupOrgan> entities);

    @RequestMapping(method = RequestMethod.PUT, value = "/GoodsSpecificationGroupOrgan/save")
    public int save(@RequestBody GoodsSpecificationGroupOrgan entity);

    @RequestMapping(method = RequestMethod.PATCH, value = "/GoodsSpecificationGroupOrgan/updateById")
    public int updateById(@RequestBody GoodsSpecificationGroupOrgan id);

    @RequestMapping(method = RequestMethod.GET, value = "/GoodsSpecificationGroupOrgan/queryById/{id}")
    public GoodsSpecificationGroupOrgan queryById(@PathVariable("id") Long id);

    @RequestMapping(method = RequestMethod.DELETE, value = "/GoodsSpecificationGroupOrgan/deleteById/{id}")
    public int deleteById(@PathVariable("id") Long id);

    @RequestMapping(method = RequestMethod.POST, value = "/GoodsSpecificationGroupOrgan/paginate")
    public Pager<GoodsSpecificationGroupOrgan> paginate(@RequestBody GoodsSpecificationGroupOrgan entity, Long pageSize, Long pageNum);

    @ResponseBody
    @RequestMapping(method = RequestMethod.DELETE, value = "/GoodsSpecificationGroupOrgan/deleteByIdLogical/{id}")
    public int deleteByIdLogical(@PathVariable("id") Long id);

    @ResponseBody
    @RequestMapping(method = RequestMethod.POST, value = "/GoodsSpecificationGroupOrgan/selectBy")
    public List<GoodsSpecificationGroupOrgan> selectBy(@RequestBody Assign2OrgansVO assignee);
}
